package application.dispatcher;

import java.io.IOException;

import javax.servlet.ServletException;

import org.dsrg.soenea.application.servlet.dispatcher.Dispatcher;
import org.dsrg.soenea.domain.command.CommandException;

import domain.command.BrowseGroupsCommand;


public class BrowseGroupsDispatcher extends Dispatcher{


	public void execute() throws ServletException, IOException 
	{
		try 
		{
			new BrowseGroupsCommand(myHelper).execute();
			//forward("JSP/BrowseGroupsTV.jsp");
			myHelper.setRequestAttribute("viewFile", "BrowseGroupsTV");
			forward("JSP/template/template.jsp");
		} 
		catch (CommandException e) 
		{
			forward("JSP/Errors.jsp");
			//e.printStackTrace();
		}
	}
}
